package com.packet.service.impl;

import com.packet.mybatis.mapper.GroupMapper;
import com.packet.pojo.Group;
import com.packet.service.GroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName:GroupServiceImpl
 * @Author: mu
 * @Date:2024-06-24 14:11
 * @Describe:
 */
@Service
public class GroupServiceImpl implements GroupService {

    @Autowired
    GroupMapper groupMapper;
    @Override
    public List<Group> getMyGroup(int sId) {
        return groupMapper.getMyGroup(sId);
    }

    @Override
    public void updateGroup(int Iid, int Gid) {
        groupMapper.updateGroup(Iid,Gid);
    }
}
